package it.unive.taw;

public class User {

	String id;
	String password;
	int x;
	int y;

	// json amici;

	public User() {
		id = null;
		password = null;
		x = 0;
		y = 0;
	}

	public User(String name, String password, int x, int y) {
		id = name;
		this.password = password;
		this.x = x;
		this.y = y;
	}

	public boolean verifica ( String id, String pass ){
		if ( this.id == id && this.password == pass )
			return true;
		return false;
	}
	
	public void setPassword(String pass) {
		password = pass;
	}

	public boolean isPasswordOk(String pass) {
		return pass == password;
	}

	public void setCoordinate(String user) {
		// Inserisce le coordinate attuali dell' utente
	}

	// public int[] getCoordinate( String user ) {
	// // Restituisce le coordinate dell'utente
	// }
	//
	// public json getFriendsFB ( String user ){

}
